<?php
class Product_model extends MY_Model {
    protected $table = 'tbl_product';
    public function __construct()
    {
        parent::__construct();
        $this->load->database();
    }
    public function list_product()
    {
        
        $this->db->select();
        $this->db->from($this->table);
        $this->db->join('tbl_pro_img', 'tbl_pro_img.pro_id = tbl_product.pro_id');
        $this->
//        $this->db->select('*');
//        $this->db->from($table1);
//        $this->db->join($table2, "$table2.$col2 = $table1.$col1");
//        $query = $this->db->get();
//        $data = array();
//        if($query->num_rows() > 0)
//        {
//            $data =  $query->result_array();
//        }
//        return $data;
    }
   
     
}